home *** CD-ROM | disk | FTP | other *** search
/ Interactive Web Graphics with Shout 3D / Interactive Web Graphics With Shout 3D.iso / mac / Shout3Ddemo / Shout3d_runtime / codebase / applets / ExamineApplet.java < prev    next >
Text File  |  2000-11-03  |  911b  |  38 lines

  1. /**    
  2.     Company:        Eyematic Interfaces
  3.     Project:        Shout3D 2.0 Sample Code
  4.     Class:            Viewer
  5.     Date:            April 26, 1999
  6.     Description:    Class for Viewer
  7.     (C) Copyright Eyematic Interfaces, Inc. - 1997-2000 - All rights reserved
  8.  */
  9. package applets;
  10.  
  11. import shout3d.*;
  12.  
  13. /**
  14.  * Shout3D viewer 
  15.  * 
  16.  * @author Jim Stewartson
  17.  * @author Paul Isaacs
  18.  * @author Dave Westwood
  19.  */
  20.  
  21. public class ExamineApplet extends Shout3DApplet{
  22.  
  23.     public void initShout3DPanel(){
  24.         panel = new ExaminePanel(this);
  25.     }
  26.     /**
  27.      * call this whenever you want to go reset the camera.
  28.      * Result is that camera goes back to its initial orientation,
  29.      * 
  30.      * Position is chosen to look at the current center of rotation.  In the
  31.      * case where objects are moving, this may be different than it was 
  32.      * when the scene was first loaded.
  33.      */
  34.     public void resetCamera(){
  35.         ((ExaminePanel)panel).resetCamera();
  36.     }
  37. }
  38.